﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="java.util.*" %>
<%@ page import="com.burry.services.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Bary</title>

<script src="Resource/js/wsGridCtrl.js"></script>
<link rel="stylesheet" type="text/css" id="css" href="Resource/css/main.css">
<body>
	<div id="framed">
  	<h2>内容管理</h2>
  </div>
  
  <div>


<table>
	<tr>
		<td width=40>编号</td>
		<td width=80>类型</td>
		<td width=240>标题</td>
		<td width=60>操作</td>
	</tr>
	
	<%
		ContentService cs = new ContentService();
		List cList = cs.getAllContent();
		for(int i=0;i<cList.size();i++){
			Map t = (Map)cList.get(i);
	%>
	<tr>
		<td width=40><%=t.get("id")%></td>
		<td width=80><%=t.get("type")%></td>
		<td width=240><%=t.get("title")%></td>
		<td width=60><a href="updateContentInit.do?id=<%=t.get("id")%>" >修改</a> &nbsp;<a href="delContent.do?id=<%=t.get("id")%>" >删除</a></td>
	</tr>
	
	<%
		}
	%>
	
</table>


<br />
  </div>
</body>
</html>